package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import me.chanjar.weixin.common.error.WxErrorException;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 员工 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-03-20
 */
public interface IStaffService extends IService<Staff> {

    @Transactional
    boolean saveTo(Staff staff);

    @Transactional
    boolean updateTo(Staff staff);

    boolean updateQyWecharId(Staff staff) throws WxErrorException;
}
